<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>mas</title>
    <link href="./mas/css/bootstrap.min.css" rel="stylesheet">
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <style type="text/css">
        .bd {
            background-color: pink;
            color: #000000;
        }

        body > div.bs-example {
            margin: 30px auto 10px auto;
            width: 600px;
            height: 100%;

        }

        body > div:nth-child(3) > form > div.col-md-12 > textarea {
            width: 100%;
            margin-top: 20px;
        }

        body > div:nth-child(3) > form > div.col-md-12 {
            padding-left: 0px;
        }
        .de{
            display: inline-block;
            margin-left: 5px;
            cursor: pointer;
            text-decoration: none;
        }
        .de:hover{
            text-decoration: none;
            color: #0f0f0f;
        }
        a{
            text-decoration: none;
        }
        a:hover{
            text-decoration: none;
        }
        .cc{
            margin-right: 20px;
        }
    </style>
</head>
<body>
<div class="container-fluid bd">
    <div class="navbar-header">
        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                data-target="#bs-example-navbar-collapse-6" aria-expanded="false">
            <span class="sr-only">看</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="#">小桥流水论坛</a>
    </div>

    <div class="collapse navbar-collapse " id="bs-example-navbar-collapse-6">
        <ul class="nav navbar-nav">
            <li class="active"><a href="./index.php">首页</a></li>
            <li><a href="#">论坛</a></li>
            <li><a href="#">联系方式</a></li>
        </ul>
    </div><!-- /.navbar-collapse -->
</div>

<div class="bs-example" data-example-id="alerts-with-links">

    <?php if(isset($error)) { ?>
    <?php $c="alert alert-danger"; ?>
        <?php }else{ ?>
        <?php $c="alert alert-success"; ?>
            <?php }?>
</div>
<h1 style="text-align: center" class="<?php echo $c; ?>"><strong>你好</strong><?php echo $info ?>,<a href="" id="aa"><?php echo $num ?></a>后跳转到<?php echo $str;?>&nbsp;<a href="<?php echo $loc; ?>">马上跳转</a> </h1>
</body>
<script type="text/javascript">

    res=document.getElementById('aa');
//    alert(res.innerHTML);
    b=res.innerHTML;
    b=parseInt(b);
    b=b-1;
    timer=setInterval(function(){

        if(b<1){

            return clearInterval(timer);
        }else {
            res.innerHTML=b;
            b-=1;

        }
    },1000);
    function run () {
        location.replace('<?php echo $loc ?>');
    }
    setTimeout(run, <?php echo $num*1000 ?>);

</script>
</html>